package com.lagou.java.sqlSession;

import java.util.List;

public interface SqlSession {

    //查询多个
    <E> List<E> selectList(String statementId, Object... args) throws Exception;

    //查询单个
    <T> T selectOne(String statementId, Object... args) throws Exception;

    //增删改
    Integer UpdateOne(String statementId, Object... args) throws Exception;



    //为Dao层接口生成代理实现类
    <T> T getMapper(Class<?> mapperClass);
}
